<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>管理中心</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
</head>
<body>
<!--{include file="top.htm"}-->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top"><!--{include file="left.htm"}--></td>
<td valign="top">
<div class='title'>
<a href="?action=content&do=channel_list">频道列表</a>
&raquo;&nbsp;<!--{if $mode=='insert'}-->添加频道<!--{else}-->编辑频道<!--{/if}-->

</div>
<div class='item'>
	
	<form action="?action=content&do=channel_<!--{$mode}-->" method="post" enctype="multipart/form-data">
 
		<table width="100%" cellspacing="5" cellpadding="0">
<tr>
		<td align="right" width="20%" height="30">名称：</td>
		<td><input type="text" name="channel_name" size="40" value="<!--{$channel.name|escape:html}-->" class="input"/></td> </tr><tr>
<td height="30"  align="right">横幅：</td>
		<td><input type="file" name="channel_banner" class="input"/>
		<!--{if $channel.banner}-->
		<a href="uploads/<!--{$channel.banner}-->" target="_blank"><img src="uploads/<!--{$channel.banner}-->" alt="" align="absmiddle" style="width:20px;height:20px;border:1px solid #ccc;padding:1px"/></a>
		<label><input type="checkbox" name="channel_banner_delete" value="<!--{$channel.banner}-->" /> 删除</label>
		<input type="hidden" name="channel_banner_old" value="<!--{$channel.banner}-->"/>
		<!--{/if}-->
		</td>
		</tr>

		<tr>
		<td align="right">描述：</td>
		<td colspan="3"><textarea name="channel_description" cols="80" rows="3" class="textarea"><!--{$channel.description|escape:html}--></textarea></td>
	 </tr><tr>
		<td align="right" height="30">允许上传附件的格式：</td>
		<td colspan="3">
		<textarea name="channel_upload_ext" cols="80" rows="3" class="textarea"><!--{$channel.upload_ext|escape:html}--></textarea>
		</td>
		<tr>
		<td align="right" height="30">排序：</td>
		<td><input type="text" name="channel_sort" size="10" value="<!--{$channel.sort}-->" class="input"/></td>
		</tr>	 
		
		</tr>
		<tr><td colspan="4" bgcolor="#dddddd" height="1"></td></tr>
		<tr>
		<td align="right" height="30" width="20%">是否在首页显示：</td>
		<td width="30%">
		<label><input type="radio" name="channel_index" value="1" {if $channel.index==1}checked{/if} /> 显示</label>
		<label><input type="radio" name="channel_index" value="0" {if $channel.index==0}checked{/if} /> 隐藏</label>
		</td>
<td align="right" height="30" width="20%">首页样式：</td>
		<td width="30%">
		<select name="channel_index_style">
		<option value="1" {if $channel.index_style==1}selected{/if}>标题模式</option>
		<option value="2" {if $channel.index_style==2}selected{/if}>相册模式</option>
		<option value="3" {if $channel.index_style==3}selected{/if}>图文模式</option>
		</select>
		</td>
		</tr>	

		<tr>
		<td align="right" height="30"  width="15%">首页标题显示长度：</td>
		<td width="35%"><input type="text" name="channel_index_truncate" size="10" value="<!--{$channel.index_truncate}-->" class="input"/></td>

		<td align="right" height="30"  width="15%">首页数据显示数目：</td>
		<td width="35%"><input type="text" name="channel_index_size" size="10" value="<!--{$channel.index_size}-->" class="input"/></td>
		</tr>
 
			<tr><td colspan="4" bgcolor="#dddddd" height="1"></td></tr>	
		<tr>
		<td align="right" height="30" width="20%">列表标题显示长度：</td>
		<td width="30%"><input type="text" name="channel_list_truncate" size="10" value="<!--{$channel.list_truncate}-->" class="input"/></td>
		<td align="right" height="30"  width="20%">列表样式：</td>
		<td width="30%">
		<select name="channel_list_style">
		<option value="1" {if $channel.list_style==1}selected{/if}>标题模式</option>
		<option value="2" {if $channel.list_style==2}selected{/if}>相册模式</option>
		<option value="3" {if $channel.list_style==3}selected{/if}>图文模式</option>
		<option value="4" {if $channel.list_style==4}selected{/if}>论坛模式</option>
		<option value="5" {if $channel.list_style==5}selected{/if}>问答模式</option>
		</select>
		</td>

		</tr>

		<tr>
		<td align="right" height="30"  width="20%">列表数据显示数目：</td>
		<td  width="30%"><input type="text" name="channel_list_size" size="10" value="<!--{$channel.list_size}-->" class="input"/></td>

		<td align="right" height="30" width="20%">内容样式：</td>
		<td width="30%">
		<select name="channel_content_style">
		<option value="1" {if $channel.content_style==1}selected{/if}>资料模式</option>
		<option value="2" {if $channel.content_style==2}selected{/if}>图片模式</option>
		<option value="3" {if $channel.content_style==3}selected{/if}>影音模式</option>
		<option value="4" {if $channel.content_style==4}selected{/if}>论坛模式</option>
		</select>
		</td>
		</tr>
<tr><td colspan="4" bgcolor="#dddddd" height="1"></td></tr>	


		<tr>
		<td align="right" height="30">可读权限：</td>
		<td>
		<select name="channel_read_permissions">
		<option value="-2"  {if $channel.read_permissions==-2}selected{/if}>禁用</option>
		<option value="-1" {if $channel.read_permissions==-1}selected{/if}>游客</option>
		<option value="0" {if $channel.read_permissions==0}selected{/if}>注册用户</option>
		<!--{html_options options=$member_group selected=$channel.read_permissions}-->
		</select>
		</td>

		<td align="right" height="30">可写权限：</td>
		<td>
		<select name="channel_write_permissions">
		<option value="-2"  {if $channel.write_permissions==-2}selected{/if}>禁用</option>
		<option value="-1" {if $channel.write_permissions==-1}selected{/if}>游客</option>
		<option value="0" {if $channel.write_permissions==0}selected{/if}>注册用户</option>
		<!--{html_options options=$member_group selected=$channel.write_permissions}-->
		</select>
		</td>
		</tr>	

		<tr>
		<td align="right" height="30">评论权限：</td>
		<td>
		<select name="channel_comment_permissions">
		<option value="-2"  {if $channel.comment_permissions==-2}selected{/if}>禁用</option>
		<option value="-1" {if $channel.comment_permissions==-1}selected{/if}>游客</option>
		<option value="0" {if $channel.comment_permissions==0}selected{/if}>注册用户</option>
		<!--{html_options options=$member_group selected=$channel.comment_permissions}-->
		</select>
		</td>
		</tr>	

		<tr>
		<td align="right" height="30"></td>
		<td>
		<label><input type="checkbox" name="channel_state" value="1" {if $channel.state==1}checked{/if} /> 显示</label>
		<label><input type="checkbox" name="channel_cache" value="1" {if $channel.cache==1}checked{/if} /> 缓存</label>
		<!--{if $mode=='insert'}-->
		<label><input type="checkbox" name="channel_menu" value="1" {if $channel.menu==1}checked{/if} /> 放入菜单</label>
		<!--{/if}-->
		</td>
		</tr>	

		<tr>
		<td align="right" height="30">&nbsp;</td>
		<td valign="center">
		<input type="submit" value="提交" class="button"/>

		</td>
		</tr>
			</table>
		<input type="hidden" name="channel_id" value="<!--{$channel.id}-->"/>
	</form>

</div>
</td>
</tr>
</table>
</body>
</html>